quadratic function to a square root function